package com.ext.aic.box;

import lombok.Getter;

public class IncreasingSeq {
    @Getter
    private int sequence = 0;
    private int index = 0;
    private int initial = 0;

    public IncreasingSeq(int sequence) {
        this.sequence = sequence;
        this.initial = sequence;
    }

    public void reset() {
        sequence = initial;
        index = 0;
    }

    public void increasing() {
        index++;
        sequence = initial * (2 * index + 1);
    }
}
